const path = "https://mock.apifox.cn/m1/1194686-0-default/cabinet/"

function getCabinetByName(name: string) {

    return fetch(path + name, {
        method: 'GET',
    }).then((res) => {
        console.log(res)
        res.json()
    }).then(data => {
        console.log(data);
    });
}

export { getCabinetByName }